import Vue from 'vue'
import Vuex from 'vuex'
import homeStore from "./homeStore/homeSwiper"
import classfiyStore from "./classfiyStore/classfiyStore"
import userStore from "./userStore/userStore"
import cartStore from "./cartStore/cartStore"
import vuexPersist from 'vuex-persist';

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
  },
  mutations: {
  },
  actions: {
  },
  modules: {
    homeStore,
    classfiyStore,
    userStore,
    cartStore
  },
  plugins:[
    new vuexPersist({
      storage:window.localStorage
    }).plugin
  ]
})
